package cannes.bean.planning;

/***********************************************************************
 * Module:  Jury.java
 * Author:  p1000666
 * Purpose: Defines the Class Jury
 ***********************************************************************/
import java.util.*;

public class Jury {

    private int id;
    private String categorie;
    private Set<Jure> listeJure = new HashSet<Jure>();

    public Jury(){}

    public Jury(int id, String cat)
    {
        this.id = id;
        this.categorie = cat;
    }

    public int getId() {
        return id;
    }

    public String getCategorie() {
        return categorie;
    }

    public Set<Jure> getListeJure() {
        return listeJure;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setCategorie(String categorie) {
        this.categorie = categorie;
    }

    public void setListeJure(Set<Jure> listeJure) {
        this.listeJure = listeJure;
    }

    public void addJure(Jure j) {
        if (!this.listeJure.contains(j)) {
            this.listeJure.add(j);
        }
    }

    public void removeJure(Jure j) {
        this.listeJure.remove(j);
    }
}
